﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.UserCommon
{
    /// <summary>
    /// 用户表
    /// </summary>
    [SugarTable("Employee")]
    public class Employee : BaseEntity
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int EmployeeId { get; set; }
        /// <summary>
        /// 员工名 (可空)
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string FirstName { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string EmployeeName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Password { get; set; }
    }
}
